package com.gin.no_gay_alliance.database.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.Locale;

/**
 * 账号
 *
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2023/8/1 17:39
 **/
@Entity
public class NgaAccount {
    /**
     * 用户id
     */
    @PrimaryKey
    public long userId;
    /**
     * 用户名
     */
    public String username;
    /**
     * cookie
     */
    public String cookie;

    @NonNull
    @Override
    public String toString() {
        return String.format(Locale.CHINA, "%s (%d)", username, userId);
    }
}
